﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImporData.aspx.cs" Inherits="WMS6.Web.Common.ImporData" ValidateRequest="false" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
  <link href="../Css/style.css" type="text/css" rel="stylesheet" />
  
   <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script> 
     <script language="javascript" type="text/javascript"  src="../Js/jquery.js"></script>
    <script language="javascript"type="text/javascript" src="../Js/jquery.blockUI.js"></script>  
    <base target="_self" />   
    <title>数据导入</title>
    <script language=javascript>
       //初始化页面
     
     function Impor()
     {
        var blockUIMsg = "<img src='../Images/loading.gif' /> &nbsp;&nbsp;&nbsp;Please wait a monent...";
        //var lang = parent.frames['banner'].document.getElementById("hdnPerfLanguage").value;
        var lang = document.getElementById("hdnLang").value;
        if(lang == "zh-CN")
        {
            blockUIMsg = "<img src='../Images/loading.gif' /> &nbsp;&nbsp;&nbsp;请稍候...";
        }
        $.blockUI.defaults.message = blockUIMsg;
        $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
        $.blockUI();
    }

    function copyToClipBoard() 
    { 
       var clipBoardContent=""; 　　
       clipBoardContent += document.getElementById('divMsg').innerText; 
　　   window.clipboardData.setData("Text",clipBoardContent);   　　
       alert("复制成功,请粘贴到剪切板.");
   }

   function openWindow(style) {
       var width = '0px';
       var height = '0px';     
       var url = "TemplateDownload.aspx?type=" + document.getElementById('hdnActionFrom').value+"&style="+style;
   window.open(url, "newwindow", "width=" + width + ",height=" + height + ", toolbar =no, menubar=yes, scrollbars=yes, resizable=no, location=no,top=100,left=300, status=no") 
   }
   function mainClose()
   {
    parent.self.parent.frames["main"].ImporDataDivClose(); 
   }
    </script>
    
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%"  align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td >
                        <table  cellpadding="0" cellspacing="0" border=0 align="center" style="margin: 10px 0">
                            <tr>
                                <td >
                                   <asp:Label ID="lblMsg" runat="server"  class="label_message" 
                                        meta:resourcekey="lblMsg" ></asp:Label>                                </td>
                                <td rowspan="6" >&nbsp;&nbsp;&nbsp;&nbsp;<img src="../Images/CVS.gif" id="img" runat="server"  style="cursor: hand;"   onclick="openWindow('CVS');" width="48" height="48"/>&nbsp;&nbsp;<img src="../Images/EXCEL.gif" id="img1" runat="server"  style="cursor: hand;"   onclick="openWindow('EXCEL');" width="48" height="46"/></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server"  class="label" Text="选择文件路径" 
                                        meta:resourcekey="Label1"></asp:Label>                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:FileUpload ID="SelectFile" runat="server" 
                                        meta:resourcekey="SelectFile"  />
                                    <%--<input id="SelectFile2" type="file" runat="server" visible="false" />--%>
                                </td>
                                    </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblIsUpdate" runat="server"  class="label" Text="重复数据是否更新: " 
                                        meta:resourcekey="lblIsUpdate"></asp:Label>                  
                                    <asp:RadioButton ID="rbtnTrue" runat="server" Text="是" GroupName="impor" 
                                        Checked="True" meta:resourcekey="rbtnTrue" />  
                                    <asp:RadioButton ID="rbtnFalse" runat="server" Text="否" GroupName="impor" 
                                        meta:resourcekey="rbtnFalse" />                         </td>
                            </tr>
                            <tr>
                                <td></td>
                            </tr>
                            <tr id="trOwner">
                                <td>
                                    <asp:Label ID="lblOwnerID" runat="server"  class="label" Text="货主代码" Width="70"
                                        meta:resourcekey="lblOwnerID"></asp:Label>
                                    &nbsp;
                                    <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" ></asp:TextBox>
                                </td>
                            </tr>
                            <tr id="trVendor">
                                <td>
                                    <asp:Label ID="lblVendorID" runat="server" class="label" Text="供应商代码" Width="70"
                                        meta:resourcekey="lblVendorID"></asp:Label>
                                    &nbsp;
                                    <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnImport" runat="server" 
                                        OnClientClick="Impor(); return true" OnClick="btnImport_Click" 
                                        CssClass="button" Text="<%$Resources:ButtonResource,btnConfirm%>"  />                                                            
                                    <input type="button"  onclick="mainClose()" id="Submit1" runat="server"   class="button" value="<%$Resources:ButtonResource,btnGoBack%>"  />     </td>
                            </tr>
                          
                            <tr>
                            <td>
                            <div id="divMsg" runat="server" style=" cursor:hand;  margin-top:10px; border:solid 1px #fcfcfc"  onclick="copyToClipBoard();"  onmouseover="document.getElementById('divMsg').style.border = 'solid 1px #C5D1FF';" onmouseout="document.getElementById('divMsg').style.border = 'solid 1px #fcfcfc';" ></div>                            </td>
                            </tr>
                        </table>
                    </td>
                </tr>               
            </table>
               <input type="hidden" id="hdnActionID" runat="server" />
               <input type="hidden" id="hdnActionFrom" runat="server" />
               <input type="hidden" id="hdnOrderID" runat="server" />
               <input type="hidden" id="hdnOwnerID" runat="server" />
               <input type="hidden" id="hdnUserName" runat="server" />
               <input type="hidden" id="hdnLang" runat="server" />
               <input type="hidden" id="hdnRtnOrderID" runat="server" />
    </div>
    </form>
</body>
</html>
